public List <UserDetails> GetUsers(Int32 Uid, string Action, Int32 DeletedBy) { if (Action == "Delete" || Action == "Delete1") { return(SqlHelpers.GetObjects <UserDetails>(Util.Env, CommandFactory.GetUsers(Uid, Action, DeletedBy), AdminObjectFactory.DeleteUsersItemFactory)); } else if (Action == "Edit" || Action == "Edit1") { return(SqlHelpers.GetObjects <UserDetails>(Util.Env, CommandFactory.GetUsers(Uid, Action, DeletedBy), AdminObjectFactory.EditUsersItemFactory)); } else { return(SqlHelpers.GetObjects <UserDetails>(Util.Env, CommandFactory.GetUsers(Uid, Action, DeletedBy), AdminObjectFactory.GetUsersItemFactory)); } }