public int UpdateDesignation(Designation designation) { int result = 0; if (IsNameExists(designation.Name)) { result = 0; } else { result = designationGateway.UpdateDesignation(designation); } return(result); }
public int UpdateDesignation(Designation designation) { int result = 0; if (IsNameExists(designation.Name)) { result = 0; } else { result = designationGateway.UpdateDesignation(designation); } return(result); }