/**** 15:59:39.05 ***/ use dotnetnuke to create websites: 1. install 2. create webpage template 3. create webpage important points: 1. installation -> 1.download 2. configure 2.1 database 2.webpage 3. use 2. configure of user credentials 3. how to customize a web page,module-> page -> config -> done 3.1 create page and html, then embed the page into the project 2. configure the CMS with the file 3. browse corresponding website path
one validator for backend .net webapi
public class ValidationActionFilter : ActionFilterAttribute { public override void OnActionExecuting(HttpActionContext actionContext) { var modelState = actionContext.ModelState; if (!modelState.IsValid) actionContext.Response = actionContext.Request.CreateErrorResponse(HttpStatusCode.BadRequest, modelState); } }