public async Task <IHttpActionResult> GetType(long id) { try { return(Ok((await _service.GetAppointmentType(id)))); } catch (Exception) { throw; } }