Example #1
0
        public IHttpActionResult ConfirmDateContainerDelivery(int id, string dateContainerDelivery)
        {
            // authentication
            Module.Framework.BLL fwBll = new Module.Framework.BLL();
            if (!fwBll.CanPerformAction(ControllerContext.GetAuthUserId(), moduleCode, Library.DTO.ModuleAction.CanApprove))
            {
                return(InternalServerError(new Exception(Properties.Resources.NOT_AUTHORIZED)));
            }
            BLL.DocumentClientMng    bll = new BLL.DocumentClientMng();
            Library.DTO.Notification notification;
            bll.ConfirmDateContainerDelivery(id, dateContainerDelivery, ControllerContext.GetAuthUserId(), out notification);

            return(Ok(new Library.DTO.ReturnData <int>()
            {
                Data = id, Message = notification
            }));
        }