Пример #1
0
        private Guid CreateBanana()
        {
            BananaCreateRequest request = new BananaCreateRequest();

            manager.CreateBanana(request);

            return(request.Id);
        }
Пример #2
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));
        }