public IActionResult CheckOutItemsByStructure([FromForm] int structureId) { string user = User.Identity.Name; var structure = _checkOutService.CheckOutByStructure(structureId, user); if (structure != 0) { return(Ok(structure)); } return(BadRequest("invalid structure id.")); }
public IActionResult CheckOutStructureItems(int structureId) { _checkInOutService.CheckOutByStructure(structureId, User.Identity.Name); return(RedirectToAction("StructuresList")); }