public void UpdateUserRole(int id, UserRoleVM userrole, int[] Roles) { db.spUserRoleUpdate( id , userrole.UserFName , userrole.UserLName , userrole.CurrentAddress , userrole.State , userrole.City , userrole.MobileNumber , userrole.PermanentAddress , userrole.Gender , userrole.CompanyName , userrole.EmailId , userrole.PWD , userrole.IsActive , userrole.CreatedBy , userrole.ModifiedBy , userrole.CreatedDate , userrole.ModifiedDate , string.Join(",", Roles) ); db.SaveChanges(); }