예제 #1
0
        // POST api/installusers
        public ReturnValue Post([FromBody] InstallUsers value)
        {
            if (value == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }

            IMFREEEntities entity = new IMFREEEntities();

            try
            {
                entity.InstallUserCreate(value.UserSN, value.UserSN_Object);
            }
            catch
            {
                throw new HttpResponseException(HttpStatusCode.InternalServerError);
            }

            ReturnValue returnValue = new ReturnValue();

            returnValue.code = 0;
            returnValue.msg  = "succes";

            return(returnValue);
        }