public IActionResult CreateSupervisor([FromBody] SupervisorVM supervisor) { var create = _supervisorRepository.Create(supervisor); if (create > 0) { return(Ok(create)); } return(BadRequest("Create Supervisor is failed")); }
public Supervisor Create(Supervisor supervisor) { return(repo.Create(supervisor)); }