Exemple #1
0
        public vmSetDetail GetSetWiseDate(vmCmnParameters objcmnParam)
        {
            vmSetDetail objSetWiseDate = null;

            try
            {
                using (_ctxCmn = new ERP_Entities())
                {
                    objSetWiseDate = (from S in _ctxCmn.PrdSetSetups
                                      where S.SetID == objcmnParam.id
                                      select new
                    {
                        RefSetDate = S.SetDate
                    })
                                     .Select(x => new vmSetDetail
                    {
                        RefSetDate = x.RefSetDate
                    }).FirstOrDefault();
                }
            }
            catch (Exception e)
            {
                e.ToString();
            }

            return(objSetWiseDate);
        }
Exemple #2
0
        public IHttpActionResult GetSetWiseDate(object[] data)
        {
            vmSetDetail     objSetWiseDate = null;
            vmCmnParameters objcmnParam    = JsonConvert.DeserializeObject <vmCmnParameters>(data[0].ToString());

            try
            {
                objSetWiseDate = objSetService.GetSetWiseDate(objcmnParam);
            }
            catch (Exception e)
            {
                e.ToString();
            }
            return(Json(new
            {
                objSetWiseDate
            }));
        }