コード例 #1
0
 public IActionResult CheckInItem([FromBody] CheckInOutVMForCreate checkInOutVMForCreate)
 {
     if (checkInOutVMForCreate.Quantity > 0)
     {
         string user = User.Identity.Name;
         _checkInService.CheckIn(checkInOutVMForCreate, user);
         return(CreatedAtAction(nameof(GetCheckIns), null));
     }
     return(BadRequest("Quantity invalid value."));
 }
コード例 #2
0
 public IActionResult CheckInItem(ItemForCheckInOutListVM itm)
 {
     _checkInOutService.CheckIn(itm.Id, itm.CheckInOutQty, User.Identity.Name);
     return(RedirectToAction("ItemsCheckInList"));
 }