예제 #1
0
 public ActionResult PostEmployer(EmployerDTO employerDTO)
 {
     if (!_employerService.Add(employerDTO))
     {
         return(BadRequest(new { success = false, message = "Số điện thoại đã tồn tại" }));
     }
     return(Ok(new { success = true, message = "Thêm thành công" }));
 }