コード例 #1
0
        public IHttpActionResult SaveAppointment(AppointmentViewModel model)
        {
            var userId     = model.CreatedBy = User.Identity.GetUserId <long>();
            var responseId = _appointmentService.AppointmentInsert(model.ToModel());

            return(Ok(responseId.SuccessResponse("Appointment saved successfully")));
        }