public IActionResult Update([FromBody] UpdateInformationDto dto) { var response = new APIResponseViewModel(); response.Status = true; response.Message = "Data Updated Sucess"; return(Ok(response)); }
public void Update(UpdateInformationDto dto) { var information = _DB.Information.SingleOrDefault(x => x.Id == dto.Id && !x.IsDelete); information.Titel = dto.Titel; information.Logo = dto.Logo; information.WhataApp = dto.WhataApp; information.linkedIn = dto.linkedIn; information.Twitter = dto.Twitter; information.Facebook = dto.Facebook; information.Instagram = dto.Instagram; information.phone = dto.phone; information.ppolicyURL = dto.ppolicyURL; _DB.Information.Update(information); _DB.SaveChanges(); }