Exemplo n.º 1
0
        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."));
        }
Exemplo n.º 2
0
 public IActionResult CheckOutStructureItems(int structureId)
 {
     _checkInOutService.CheckOutByStructure(structureId, User.Identity.Name);
     return(RedirectToAction("StructuresList"));
 }