示例#1
0
        public IActionResult Delete(Guid entityid)
        {
            var rowsAffect = _dataAccessBaseServices.Delete(entityid);

            if (rowsAffect > 0)
            {
                return(Ok(rowsAffect));
            }
            else
            {
                return(NoContent());
            }
        }
示例#2
0
 public IActionResult Delete(Guid entityId)
 {
     try
     {
         var rowAffects = _baseServices.Delete(entityId);
         if (rowAffects > 0)
         {
             return(Ok("Xoa thanh cong"));
         }
         else
         {
             return(NoContent());
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
示例#3
0
 public IActionResult Delete(Guid id)
 {
     return(Ok(_baseServices.Delete(id)));
 }
示例#4
0
 public async Task <bool> Delete(T model)
 {
     return(await baseDal.Delete(model));
 }