Dheeraj Sharma

Dheeraj Sharma

  • NA
  • 98
  • 29k

restrict specific data to delete or edit by user

Jan 16 2018 3:03 AM
i have table name of Role
i have two columns name RoleID and RoleName,
 
and it contains data like below,
1. Admin 
2. User
3. Employee
4. Etc. 
 
now in MVC view i have bind all the data into table view and allow EDIT and DELETE functionality,
 
but i dont want to allow user to delete or edit first two data(1. Admin, 2. User) from the database.
 
do anyone have any idea about this..
thanks in advance. 

Answers (1)