Example #1
0
 public async Task <int> DeleteByIdUser(int userId)
 {
     try
     {
         return(await _iUsersServices.DeleteByIdServices(userId));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
        public async Task <int> DeleteByIdUser(int userId)
        {
            int result = 0;

            try
            {
                result = await _iUsersServices.DeleteByIdServices(userId);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(result);
        }