Ejemplo n.º 1
0
        public async Task <IActionResult> EditSqlDocTemp([FromBody] Req <SqlDocDto> request)
        {
            bool b;

            if (request.Data.Id > 0)
            {
                b = await _sqlOnlineApplication.EditSqlDocTemp(request);
            }
            else
            {
                b = await _sqlOnlineApplication.AddSqlDocTemp(request);
            }
            if (b == false)
            {
                return(Error(request.Message));
            }
            return(Success(request.Data.Id));
        }