public async Task <bool> XoaCauHoi(XoaCauHoiRequest r) { using (IDbConnection dbConnection = _connection) { DynamicParameters parameters = new DynamicParameters(); parameters.Add("@ID", r.ID, DbType.Int32); int listCauHoi = await dbConnection.ExecuteAsync(Constants.CauHoi_Xoa, param : parameters, commandType : CommandType.StoredProcedure); return(listCauHoi > 0 ? true: false); } }
public async Task <bool> DeleteCauHoi([FromBody] XoaCauHoiRequest request) { return(await _cauHoiBusiness.Delete(request)); }
public async Task <bool> Delete(XoaCauHoiRequest r) { return(await _cauHoiRepository.XoaCauHoi(r)); }