Ejemplo n.º 1
0
        public IHttpActionResult PostRecive(ReceiveData receiveData)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));          // 400 Bad Request
            }
            #region 紀錄Log
            var Receive_Procedure_Respons = SQLMethod.Receive_Procedure(receiveData);
            switch (Receive_Procedure_Respons)
            {
            case 0:
            {
                return(Ok(SQLMethod.Receive_Procedure_ErrorStr));;
            }

            case 1:
            {
                return(Ok(SQLMethod.Receive_Procedure_ErrorStr));
            }

            default:
            {
                return(BadRequest(SQLMethod.Receive_Procedure_ErrorStr));
            }
            }
            #endregion
        }