Exemplo n.º 1
0
        //[Authorize(Roles = AppRoles.PUBLIC)]
        public async Task <IHttpActionResult> SavePlannedDate([FromBody] SavePlannedDateRequestArgs args)
        {
            if (args == null)
            {
                return(InvalidRequest("Please specify required parameters."));
            }

            var result = await testService.SavePlannedDateAsync(args);

            return(Ok(result));
        }
Exemplo n.º 2
0
        public async Task <bool> SavePlannedDateAsync(SavePlannedDateRequestArgs request)
        {
            await DbContext.ExecuteNonQueryAsync(DataConstants.PR_SAVEPLANNEDDATE, CommandType.StoredProcedure,
                                                 args =>
            {
                args.Add("@TestID", request.TestID);
                //args.Add("@UserID", userContext.GetContext().FullName);
                args.Add("@PlannedDate", request.PlannedDate);
            });

            return(true);
        }