func (c *CommandController) DeleteBy(id int64, ctx iris.Context) interface{} {
	err := c.Service.DeleteByID(id)

	if err != nil {
		ctx.Application().Logger().Error(err)
		return iris.StatusInternalServerError
	}

	return nil
}
// DeleteBy delete command by ID
DeleteBy delete command by ID
// DeleteBy delete command by ID
func (c *CommandController) DeleteBy(id int64, ctx iris.Context) interface{} {
	err := c.Service.DeleteByID(id)
	if err != nil {
		ctx.Application().Logger().Error(err)
		return iris.StatusInternalServerError
	}
	return nil
}
func ( c * CommandController ) DeleteBy ( id int64 , ctx iris . Context ) interface { } { err := c . Service . DeleteByID ( id ) if err != nil { ctx . Application ( ) . Logger ( ) . Error ( err ) return iris . StatusInternalServerError } return nil }
DeleteBy delete command by ID
DeleteBy delete command by ID