private Guid CreateBanana() { BananaCreateRequest request = new BananaCreateRequest(); manager.CreateBanana(request); return(request.Id); }
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)); }