コード例 #1
0
        public MdlADDRESSS EditADDRESSS(int id)
        {
            // ADDRESSS  item = _dbFirms.ADDRESSSes.Where(x => x.AdressID == id).SingleOrDefault();
            var         query = _dbFirms.usp_GetAddresssForEdit(id);
            MdlADDRESSS model = new MdlADDRESSS();

            foreach (var item in query)
            {
                model.AdressID      = item.AdressID;
                model.OrgDoc_ID     = item.OrgDoc_ID;
                model.AdressType_ID = item.AdressType_ID;
                model.AdressDetails = item.AdressDetails;
                model.Tehsil_ID     = item.Tehsil_ID;
                model.Distric_ID    = Convert.ToInt32(item.Distric_ID);
                //  model.Distric_ID=item.AdressType_ID
                // model.EnterByUser_ID = item.EnterByUser_ID;
                //  model.EntryDate = item.EntryDate;
                // model.ModifyByUser_ID = int.Parse(item.ModifyByUser_ID.ToString());
                //  model.ModifyByDate =DateTime.Parse(item.ModifyByDate.ToString());
                model.IsActive = item.IsActive;
            }
            // model.IsActiveDate =Convert.ToDateTime(item.IsActiveDate.ToString());
            return(model);
        }