public async Task <StatusCodeResult> Delete(int id) { if (await _service.DeleteAsync(id) == 1) { return(StatusCode((int)HttpStatusCode.OK)); } else { return(StatusCode((int)HttpStatusCode.ExpectationFailed)); } }
public async Task DeleteRoomType(RoomTypeRequestModel roomTypeRequestModel) { var roomType = _mapper.Map <RoomType>(roomTypeRequestModel); await _roomTypeRepository.DeleteAsync(roomType); }
public async Task DeleteRoomType(RoomType roomType) { await _roomTypeRepository.DeleteAsync(roomType); }