public async Task <bool> XoaFileNghe(XoaFileNgheRequest r)
        {
            using (IDbConnection dbConnection = _connection)
            {
                DynamicParameters parameters = new DynamicParameters();
                parameters.Add("@ID", r.ID, DbType.Int32);
                int listCauHoi = await dbConnection.ExecuteAsync(Constants.Nghe_Xoa, param : parameters, commandType : CommandType.StoredProcedure);

                return(listCauHoi > 0 ? true: false);
            }
        }
Example #2
0
 public async Task <bool> Delete(XoaFileNgheRequest r)
 {
     return(await _ngheRepository.XoaFileNghe(r));
 }
 public async Task <bool> Delete([FromBody] XoaFileNgheRequest request)
 {
     return(await _ngheBusiness.Delete(request));
 }