public ActionResult SelectGroup(int groupId) { //int iGroupId = default(int); //int.TryParse(groupId.DecryptString(), out iGroupId); if (groupId < 1) { return(Json(new { isSueecess = false })); } try { GroupService _groupService = new GroupService(); GroupMasterDto group = _groupService.GetByID(groupId); ViewBag.lstGroups = group; GroupInfo objGroupInfo = new BusinessEntities.GroupInfo(); objGroupInfo.GroupID = groupId; objGroupInfo.GroupName = group.GroupName; objGroupInfo.GroupCode = group.GroupCode; objGroupInfo.TEGroupName = group.TEGroupName; objGroupInfo.Village = group.Village; objGroupInfo.Cluster = group.ClusterName; objGroupInfo.MeetingDay = group.MeetingDay; objGroupInfo.MeetingDate = group.MeetingDate; objGroupInfo.LockStatus = group.LockStatus; objGroupInfo.LockStatusCode = group.LockStatusCode; GroupInfo = objGroupInfo; return(Json(new { isSueecess = true })); } catch (Exception ex) { throw ex; } }
public void UpdateGroupInfoSessionbyGroupId(int groupId) { GroupService _groupService = new GroupService(); GroupMasterDto group = _groupService.GetByID(groupId); GroupInfo objGroupInfo = new BusinessEntities.GroupInfo(); objGroupInfo.GroupID = groupId; objGroupInfo.GroupName = group.GroupName; objGroupInfo.GroupCode = group.GroupCode; objGroupInfo.TEGroupName = group.TEGroupName; objGroupInfo.Village = group.Village; objGroupInfo.Cluster = group.ClusterName; objGroupInfo.MeetingDay = group.MeetingDay; objGroupInfo.MeetingDate = group.MeetingDate; objGroupInfo.LockStatus = group.LockStatus; objGroupInfo.LockStatusCode = group.LockStatusCode; GroupInfo = objGroupInfo; }