public IActionResult Delete([FromRoute] long id) { return(ControllerUtil.Delete <CityDto, City>(this, _repo, _mapper, city => city.Id == id)); }
public IActionResult GetAll([FromQuery]long? salonId, [FromQuery]long? modelId) { return ControllerUtil.GetFiltered<InventoryDto, Inventory>(this, _repo, _mapper, x => (salonId == null || x.SalonId == salonId) && (modelId == null || x.ModelId == modelId)); }
public IActionResult Post([FromBody] City city) { return(ControllerUtil.Post(this, _repo, _mapper, city, updatedModel => new { Id = updatedModel.Id })); }
public IActionResult Put(long id, [FromBody] City city) { return(ControllerUtil.Put(this, _repo, _mapper, city, cityDto => cityDto.Id == id)); }
public IActionResult GetAll() { return(ControllerUtil.GetAll <CityDto, City>(this, _repo, _mapper)); }
public IActionResult Get(long id) { return(ControllerUtil.Get <CityDto, City>(this, _repo, _mapper, id)); }
public IActionResult Delete([FromRoute] long id) { return(ControllerUtil.Delete <EquipmentDto, Equipment>(this, _repo, _mapper, dto => dto.Id == id)); }
public IActionResult Put(long id, [FromBody] Equipment equipment) { return(ControllerUtil.Put(this, _repo, _mapper, equipment, dto => dto.Id == id)); }
public IActionResult Post([FromBody] Equipment equipment) { return(ControllerUtil.Post(this, _repo, _mapper, equipment, model => new { Id = model.Id })); }
public IActionResult Get(long id) { return(ControllerUtil.Get <EquipmentDto, Equipment>(this, _repo, _mapper, id)); }
public IActionResult GetAll() { return(ControllerUtil.GetAll <EquipmentDto, Equipment>(this, _repo, _mapper)); }