Beispiel #1
0
        public Response Login([FromBody] ParentModel Parent)
        {
            Response ans = null;

            try
            {
                if (ValidateSecurityAPI())
                {
                    //ParentModel parent = JsonConvert.DeserializeObject<ParentModel>(Parent);
                    ans = ParentModel.Login(Parent);
                }
                else
                {
                    ans = new Response()
                    {
                        IsSuccessful = false, ResponseMessage = AppManagement.MSG_API_Validation_Failure
                    };
                }
            }
            catch (Exception ex)
            {
                ans = new Response()
                {
                    IsSuccessful = false, ResponseMessage = AppManagement.MSG_GenericExceptionError
                };
            }

            return(ans);
        }