public int SaveAgilePointDetails(AgilePointDetails agilePointDetails)
        {
            var result = this.retrospectiveUnitOfWork.AgilePointRepository.SaveAgilePointDetails(agilePointDetails);

            this.retrospectiveUnitOfWork.Save();
            return(result);
        }
Пример #2
0
        public int SaveAgilePointDetails(AgilePointDetails agilePointDetails)
        {
            var agilePointDetail = new tbl_mst_agiledescinfo
            {
                agiledescinfo_text = agilePointDetails.Text,
                agiledescinfo_type = agilePointDetails.Type
            };

            var response = this.InsertandSave(agilePointDetail);

            return(response.agiledescinfo_id);
        }
Пример #3
0
        public HttpResponseMessage Post(AgilePointDetails agilePointDetails)
        {
            var response = this.agilePointService.SaveAgilePointDetails(agilePointDetails);

            if (response != 0)
            {
                agilePointDetails.Id = response;
                var subscribed = Hub.Clients.Group("AgilePoint");
                subscribed.addRetroItem(agilePointDetails);
                return(Request.CreateResponse(HttpStatusCode.OK, response));
            }

            return(Request.CreateResponse(HttpStatusCode.NotFound, response));
        }