// POST: api/Appointment public Appointment Post(DataModelDTO.Appointment appointment) { var postData = Mapper.Map <BusinessDataModel.Appointment>(appointment); var result = appointmentBL.AddAppointment(postData); var resultToReturn = Mapper.Map <DataModelDTO.Appointment>(result); return(resultToReturn); }
// PUT: api/Appointment public void Put(DataModelDTO.Appointment appointment) { var putData = Mapper.Map <BusinessDataModel.Appointment>(appointment); appointmentBL.UpdateAppointment(putData); }