示例#1
0
        public async Task <ActionResult> EditTest(SimTest simTest)
        {
            try
            {
                var response = await _apiHandler.UpdateSimTest(simTest);

                Session.Message = new Message()
                {
                    CssClassName = "alert-sucess", Title = "Success!", Messages = "Updated."
                };
                return(View());
            }
            catch
            {
                Session.Message = new Message()
                {
                    CssClassName = "alert-error", Title = "Error!", Messages = "Operation Failed."
                };
                return(View());
            }
        }