Posts

Showing posts from September, 2021

Quick Appointment Service

Image
 DoctorAppointment package com.cts.das.bean; import java.time.LocalDateTime; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import javax.validation.constraints.Pattern; public class DoctorAppointment { private static int appointmentId=1000; //Use validation annotations as per the requirement // add constructor and increment appointmentId by 1 @NotNull(message="Patient name is required") private String patientName; @NotNull(message="Phone number is required") @Pattern(regexp="^//d{10}$",message="Phone number should be 10 digits.") private String phoneNumber; private LocalDateTime dateOfAappointment; @NotNull(message="Email is required") private String email; @NotNull(message="Age is required") private Integer age; @NotNull(message="Gender is required") private String gender; private String problemName; private String doctorName; private String appointmentStatus; public Doc

Workshop enrollment dotnet ict

Image
 // TraineeBL.cs // WorkShop Enrolement using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WorkShopEnrollmentApp {     //Write your code here     public class TraineeBL     {         public bool SaveTraineeDetails(TraineeBO objBO)         {             TraineeDA tDA = new TraineeDA();             bool res = tDA.AddTraineeDetails(objBO);             if (res)                 return true;             else                 return false;         }     } } ———————————————————— TraineeBO using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WorkShopEnrollmentApp {    //Write your code here    public class TraineeBO    {        public long traineeId;        public string traineeName;        public string batchCode;                public long TraineeId { get; set; }        public string TraineeName { get; set; }        public string BatchCode { get;