예제 #1
0
        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);
            }
        }
예제 #2
0
 public async Task <bool> DeleteCauHoi([FromBody] XoaCauHoiRequest request)
 {
     return(await _cauHoiBusiness.Delete(request));
 }
예제 #3
0
 public async Task <bool> Delete(XoaCauHoiRequest r)
 {
     return(await _cauHoiRepository.XoaCauHoi(r));
 }