public IActionResult CreateSupervisor([FromBody] SupervisorVM supervisor)
        {
            var create = _supervisorRepository.Create(supervisor);

            if (create > 0)
            {
                return(Ok(create));
            }
            return(BadRequest("Create Supervisor is failed"));
        }
예제 #2
0
 public Supervisor Create(Supervisor supervisor)
 {
     return(repo.Create(supervisor));
 }