Пример #1
0
 /// <summary>
 /// 删除负责人
 /// </summary>
 /// <param name="managerId"></param>
 /// <returns></returns>
 public bool DeleteManager(Int64 managerId)
 {
     try
     {
         Manager entity = ManagerRepository.GetManagerById(managerId);
         if (ManagerRepository.DeleteManager(entity) == 1)
         {
             return(true);
         }
         return(false);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Пример #2
0
 public async Task <bool> DeleteManager(int id)
 {
     return(await mRepository.DeleteManager(id));
 }