/// <summary>
     /// 删除员工
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public static async Task <ResponseResult> Delete(long id)
     {
         if (id <= 0)
         {
             return new ResponseResult {
                        Result = false, ErrorMessage = "未传入主键或主键非法", Code = ResponseCode.NeedsKeyParameter
             }
         }
         ;
         return(await EmployeeAccess.Delete(id));
     }
 }
Exemple #2
0
 public static bool Delete(int id)
 {
     return(EmployeeAccess.Delete(id));
 }