Exemplo n.º 1
0
 public BranchOffice VHasUniqueName(BranchOffice branchOffice, IBranchOfficeService _branchOfficeService)
 {
     if (String.IsNullOrEmpty(branchOffice.Name) || branchOffice.Name.Trim() == "")
     {
         //  branchOffice.Errors.Add("Name", "Tidak boleh kosong");
     }
     else if (_branchOfficeService.IsNameDuplicated(branchOffice))
     {
         // branchOffice.Errors.Add("Name", "Tidak boleh ada duplikasi");
     }
     return(branchOffice);
 }