Exemple #1
0
        public async Task <IActionResult> ReceiveRegister([FromBody] List <ReceiveDetailModel> data)
        {
            var userCurrent = User.FindFirst(ClaimTypes.NameIdentifier).Value;
            var result      = await _serviceReceive.ReceiveRegister(data, userCurrent);

            return(Ok(new { result = result }));
        }
Exemple #2
0
        public async Task <IActionResult> ReceiveRegister([FromBody] Receive_Dto model)
        {
            var userCurrent = User.FindFirst(ClaimTypes.NameIdentifier).Value;

            model.UserID = userCurrent;
            var user = await _serverUser.GetUserById(userCurrent);

            model.DepID = user.DepID;
            var result = await _serviceReceive.ReceiveRegister(model);

            return(Ok(new { result = result }));
        }