public IActionResult Create([FromBody] CreateInformationDto dto) { var response = new APIResponseViewModel(); response.Status = true; response.Message = "Data Retrive Sucess"; return(Ok(response)); }
public void Create(CreateInformationDto dto) { var information = new InformationDbEntity(); 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.Add(information); _DB.SaveChanges(); }