Hi,
Any suggestions on how to improve this code which updates user role (MVC).
Thanks
[Authorize(Roles = "Administrator")]
[HttpPost]
public ActionResult EditUser(UserAdminViewModel model)
{
var result = m_AccountModel.UpdateUser(model);
if (result)
return...
0
I work on asp.net MVC application . I face issue I can't pass model ResignationRequester properties values to Approve Index action when click approve button .
all properties as Request no and employee no load when details page load then I write
comment SpeakStuffComment then click approve...
Hi,
I have an MVC 5 project where a user can create their account:
I'd like not to allow users to self register. Instead I'd like users to request access and an admin can accept or deny that account.
Does anyone have a working example ?
Thanks.
I working on mvc asp.net csharp i need to make function return json result when branch code exist then return true and if not exist return false so can you help me do this function return json result true or false
public JsonResult CheckExist(string BranchCode)
{
string branches =...
I working on MVC razor page with .NET core 7 .I face issue Ajax request not return branches drop down list based on selected value from drop down list country .
with another meaning I need cascade branch drop down list based on country drop down list by using ajax request .
so data display...
I working on asp.net core 5 mvc web application , I face issue I can't store Picture User on database table [dbo].[AspNetUsers].
so can you tell me how to store personal picture of user on table [dbo].[AspNetUsers].
I already add new column PictureUser on table [dbo].[AspNetUsers] to store...
Hello everyone. My name is Furkan Gözükara. I am a Ph.D. computer engineer from Turkey.
I have a software engineering dedicated Youtube channel named: SECourses : https://www.youtube.com/SECourses
I want to share a few of my lecture playlists. The playlists contain the full course for free...
Hi, I have an issue with validation messages. I think the problem is caused by 2 post method.
[HttpGet]
[Authorize]
public ActionResult Others(string bid)
{
return View(ret);
}
[HttpPost]
public ActionResult...
Hi, I'm using MVC5 with .NET 4.6.1.
I want to users can follow each other but don't know how can I do this.. I tried these things:
public class User
{
[Key]
public int ID { get; set; }
public String Avatar { get; set; }
public String State { get; set; }...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.