public ActionResult Post([FromBody] MedicViewModel userVM) { var user = _mapper.Map <Medic>(userVM); try { _userService.Create(user, userVM.Password); return(Ok()); } catch (AppException ex) { return(BadRequest(new { message = ex.Message })); } }