Exemplo n.º 1
0
        public ActionResult CreateBanana(BananaCreateRequestModel request)
        {
            BananaCreateResponseModel response = new BananaCreateResponseModel();

            try
            {
                response.Revision = manager.CreateBanana(request);
                response.Success  = true;
            }
            catch (Exception ex)
            {
                response.Message = ex.Message;
            }

            return(Json(response));
        }
        public ActionResult BananaCreate()
        {
            BananaCreateRequestModel model = new BananaCreateRequestModel();

            return(View(model));
        }