c# 2D array – merging Values

I have a 2 Dimensional string array(5*2) like this: string[,] data= new string[5, 2] {{"F1","LINK1"}, {"F1","LINK2"}, {"F2","LINK3"}, {"F3","LINK4"}, {"F3","LINK5"}}; i want to group and merge the values into new array. Output : {"F1","LINK1,LINK2"}, {"F2","LINK3"}, {"F3","LINK4,LINK5"} The output array 3*2. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers … Read more

Error when using api call to send post values to controller and mapping them with a dto

I have two webpages, the first has a dropdown that allows the person to select a project & a button. When the button is submitted, it takes them to the manage users webpage and sends the Projectname to the webpage as well. The manage users webpage allows the person to assign a user to the project they selected on the previous webpage. There is a button as well, and when submitted it sends an api call with post values to my controller. The controller accepts a dto and then binds these values to the AssignUserDto. It then finds the entity associated w/ the dto username, and then maps the values from the dto to the entity so that the user has a Projectname associated with it.

Remove two or more itens form a list with predicate

I have a list that returns all status values except the exported one, however, I would like a list that returns all values except the exported and the authorized one (2 Status) // Getting all status except the exported one // GetStarusApontamento is a IEnumerable var listStatus = this._apontamentoAppService.GetStatusApontamento().Where(x=>x != StatusApontamento.Exported).ToList(); How would I do … Read more